/**
 * @describe 用户模块数据
 * @author 游金宇(KM)
 * @date 2023-08-02 20:11:20
 */

import { create } from '@bufbuild/protobuf';
import { ClientBootParam, ClientBootParamSchema } from 'sgc';
import { Store } from '../index';
import { BaseStore } from '../BaseStore';
import { makeObservable, observable } from '@shimotsuki/mobx';
import { GetUserInfoResponse, GetUserInfoResponseSchema } from 'db://assets/pb-generate/wechat/service/api/v1/api_pb';

/**url参数 */
export default class UserStore extends BaseStore {

    constructor(rootStore: Store) {
        super(rootStore)
        makeObservable(this, {
            user_info: observable
        })
    }

    /**用户信息 */
    user_info: GetUserInfoResponse = create(GetUserInfoResponseSchema)

    get isAudience() {
        return !this.rootStore.game.game_token
    }


}
